/**
 * Copyright (c) 2013, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.domain.track;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author dranson
 * @date 2013年11月26日
 */
public class Trace {
    
    /**
     * 发生时间
     */
    @NotEmpty
    @Length(max=19)
    private String time;    
    /**
     * 跟踪信息描述(同物流公司网站；物流公司需要对此字段单独进行html转义)
     */
    @NotEmpty
    @Length(max=128)
    private String desc;
    /**
     * 事件发生所在城市
     */
    @NotEmpty
    @Length(max=16)
    private String city;
    /**
     * 站点类型：1:网点    2:中转中心/分拨中心
     */
    @NotEmpty
    @Length(max=16)
    private String facilityType;
    /**
     * 网点编号或中转/分拨中心编号
     */
    @NotEmpty
    @Length(max=16)
    private String facilityNo;
    /**
     * 网点名称或者中转中心/分拨中心名称
     */
    @NotEmpty
    @Length(max=32)
    private String facilityName;
    /**
     * 事件/操作
     */
    @NotEmpty
    @Length(max=16)
    private String action;
    /**
     * 联系人
     */
    @Length(max=30)
    private String contacter ;
    /**
     * 联系方式；固话或者手机号码
     */
    @Length(max=20)
    private String contactPhone ;
    
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getFacilityType() {
        return facilityType;
    }

    public void setFacilityType(String facilityType) {
        this.facilityType = facilityType;
    }

    public String getFacilityNo() {
        return facilityNo;
    }

    public void setFacilityNo(String facilityNo) {
        this.facilityNo = facilityNo;
    }

    public String getFacilityName() {
        return facilityName;
    }

    public void setFacilityName(String facilityName) {
        this.facilityName = facilityName;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getContacter() {
        return contacter;
    }

    public void setContacter(String contacter) {
        this.contacter = contacter;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    @Override
    public String toString() {
        return "Trace[time=" + time + ", desc=" + desc + ", city=" + city + ", facilityType=" + facilityType
                + ", facilityNo=" + facilityNo + ", facilityName=" + facilityName + ", action=" + action
                + ", contacter=" + contacter + ", contactPhone=" + contactPhone + "]";
    }
}
